<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html">
    <h:head>
        <title>Facelet Title</title>
    </h:head>
    <h:body>
        <table border="0">
            <h:form>
            <tbody>
                <tr>
                    <td>Model Name</td>
                    <td> <h:inputText value="#{modelBean.model.modelName}" id="txtModelName" required="true" requiredMessage="please input model name"></h:inputText></td>
                    <h:message for="txtModelName"></h:message>
                </tr>
                <tr>
                    <td>Model Description</td>
                    <td><h:inputTextarea value="#{modelBean.model.description}" id="txtdescrip" required="true" requiredMessage="please input model description"></h:inputTextarea></td>
                    <h:message for="txtdescrip"></h:message>
                </tr>
                <tr>
                    <td><h:commandButton value="Create" id="btn" action="#{modelBean.actionCreateModel}"></h:commandButton></td>
                    <td></td>
                </tr>
            </tbody>
            </h:form>
        </table>

    </h:body>
</html>

